/*
 * @Author: mikey.zhaopeng
 * @Date:   2016-04-29 14:55:58
 * @Last Modified by:   mikey.zhaopeng
 * @Last Modified time: 2016-05-27 15:14:02
 */

'use strict';


define([
    './baseBean',
], function(
    BaseBean
) {
    function me() {
        BaseBean.apply(this, arguments);
        var self = this;
        this.getFeed = function(params, callback, errorCallback) {
            self._post('/feed/getFeed', params, function(result) {
                if (callback) {
                    callback(result, params);
                }
            }, errorCallback);
        }

        this.findByProd = function(params, callback, errorCallback) {
            self._post('/feed/findByProd', params, function(result) {
                if (callback) {
                    callback(result, params);
                }
            }, errorCallback);
        }


    };
    return new me();
});
